package com.gzsxy.exception;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 自定义OAuth2异常类
 * @date 2021/11/8 15:53
 */
@JsonSerialize(using = CustomOAuthExceptionSerializer.class)
public class CustomOAuthException extends OAuth2Exception {


    private static final long serialVersionUID = 2234072125969388251L;

    public CustomOAuthException(String msg) {
        super(msg);
    }

    @Override
    public void addAdditionalInformation(String key, String value) {
        super.addAdditionalInformation(key, value);
    }


}
